﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using NewsDataProvider.FeedConverter;

namespace DataProvidersUnitTest.NewsDataProviderTests
{
    [TestClass]
    public class DataConverterTest
    {
        [TestMethod]
        public void TestConverter_SuccessConverted()
        {
            var target = new SyndicationFeedConverter();
            var actualResult = target.Convert(MockDataProvider.MockNewsFeed);
            Assert.IsNotNull(actualResult);
            Assert.IsNotNull(actualResult.Items);
        }
    }
}
